/* eslint-disable */
// @ts-ignore
import request from '@/utils/http';

import * as API from './types';

/** 获取手机号的code 获取手机号的code POST /wechat/xcx/getPhoneByCode */
export async function wechatXcxGetPhoneByCodeUsingPost({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.WechatXcxGetPhoneByCodeUsingPostParams;
  options?: { [key: string]: unknown };
}) {
  return request<API.RString>('/wechat/xcx/getPhoneByCode', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 小程序登录 GET /wechat/xcx/jscode2session */
export async function wechatXcxJscode2SessionUsingGet({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.WechatXcxJscode2SessionUsingGetParams;
  options?: { [key: string]: unknown };
}) {
  return request<API.RNewUserVo>('/wechat/xcx/jscode2session', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 小程序登录 GET /wechat/xcx/test */
export async function wechatXcxTestUsingGet({
  options,
}: {
  options?: { [key: string]: unknown };
}) {
  return request<unknown>('/wechat/xcx/test', {
    method: 'GET',
    ...(options || {}),
  });
}
